package com.evil.kingdom.pojo.entity.token;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author liyang
 * @date 2024-05-18 14:16
 */
@Data
public class TokenInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @NotNull(message = "token info user_id error")
    private Long userId;

    /**
     * 用户名
     */
    private String userName;

    /**
     * token创建时间戳/毫秒
     */
    private Long created;
}
